﻿var $yhqlink = $('#myyhqLink');

$yhqlink.bind('click', function() {
			var mycookie = getCookie("KFCYHQ2");
			if (mycookie == null) {
				alert("您还未收藏任何优惠券哦！");
				return false;
			}
			var ylist = mycookie.split("|");
			if (ylist == "" || ylist == null) {
				alert("你还未收藏任何优惠券哦！");
				location.href = "index.html";
			}

			else {
				location.href = "myyhq.html";
			}
		});